<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>留言列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> <a href="index.html" target="_parent">首页</a> 
	<span class="c-gray en">&gt;</span> 留言管理 <span class="c-gray en">&gt;</span> 留言列表 
	<a class="btn btn-success radius r mr-20 reload" style="line-height:1.6em;margin-top:3px" href="javascript:;" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="pl-20 pr-10">
	

	<ul class="commentList" id="content_sp">
	  
	</ul>
	<!-- <table class="table table-border table-bordered table-bg">
		<thead>

			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="40">ID</th>
				<th width="100">反馈用户</th>
				<th >留言内容</th>
				<th >回复</th>
				<th width="80">留言时间</th>
				<th width="80">回复时间</th>
				<th width="60">状态</th>
				<th width="60">是否回复</th>
				<th width="60">操作</th>
			</tr>
		</thead>
		<tbody id="content_sp">

		</tbody>
	</table> -->

	<div class="cl pd-5 bg-1 bk-gray mt-20 mb-20"> 
	
		<label class="btn btn-default l mr-10 mt-5 select-all">
		<input type="checkbox" name="" value=""> 全选</label> 
		<a href="javascript:;" class="btn btn-warning l mr-10 mt-5 radius fun-all" data-type="stop"><i class="Hui-iconfont">&#xe6de;</i> 批量关闭</a> 
		<a href="javascript:;" class="btn btn-success l mr-10 mt-5 radius fun-all" data-type="start"><i class="Hui-iconfont">&#xe603;</i> 批量开启</a> 
		<a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius fun-all" data-type="del"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
		
		
		<span class="r pt-5"  style="line-height: 35px;" id="page"></span>
		<span class="r mr-10"  style="line-height: 40px;" id="dataall"></span>  
	</div>

</div>
<!-- 列表模版 -->
<script id="test" type="text/html">
<% for (x in list) { %>

	<li class="item cl"> <a href="#"><i class="avatar size-L radius"><img alt="" src="http://static.h-ui.net/h-ui/images/ucnter/avatar-default.jpg"></i></a>
	  <div class="comment-main">
	    <header class="comment-header">
		    <div>
		      	<a class="comment-author" href="#"><%=list[x].gb_name%></a> 
		        <span class="mr-10"><b>标题：</b><%=list[x].f_type%> </span>
		        <time title="2014年8月31日 下午3:20" datetime="2014-08-31T03:54:20"><%=list[x].gb_time%></time>
		        <span class="r valueid"><input type="checkbox" value="<%=list[x].gb_id%>" name=""></span>
		        <span class="r mr-10 ">
		        	<a style="text-decoration:none" class="label label-danger radius c-white fun-del f-18" href="javascript:;" title="删除" >删除</a>
		        	<%if(list[x].admin_state==1){%>
		        		<a title="点击查看" href="javascript:;" onclick="_open('留言回复','feedback-huifu.html?editid=<%=list[x].gb_id%>','60%','80%',false)" class="label label-success radius ml-5" style="text-decoration:none">已回复</a> 
		        	<%}else{%>
		        		<a title="点击回复" href="javascript:;" onclick="_open('留言回复','feedback-huifu.html?editid=<%=list[x].gb_id%>','60%','80%',false)" class="label radius ml-5" style="text-decoration:none">未回复</a>
		        	<%}%>
		        </span>
		    </div>
	    </header>
	    <div class="comment-body">
	        <p><%=list[x].gb_content%></p>
	        <p class="c-warning"><b>回复：</b><%=list[x].gb_reply%></p>
	    </div>
	  </div>
	</li>

<% } %>
</script>	
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script src="/Public/js/template-native.js"></script> 
<script type="text/javascript" src="lib/laypage/laypage.js"></script> 
<script src="/Manage/js/lazyload.min.js"></script>
<script type="text/javascript">
var API=API_GUESTBOOK;
loaddata(API);

$(document).ready(function(){
	// 全选按钮
	$(".select-all input:checkbox").on("click" , function(){
    	$("#content_sp").find("li .valueid input:checkbox").prop("checked",$(this).prop("checked"));
	});
	// 判断是否取消全选
	$(document).on('click','#content_sp li .valueid input:checkbox',function(){
		var checkedlen=$("#content_sp li .valueid input:checkbox:checked").length;
		var len=$("#content_sp li .valueid input:checkbox").length;
		// console.log(checkedlen=len);
		
		$(".select-all input:checkbox").prop("checked",checkedlen==len);
	})
})

</script>
</body>
</html>